Xbasic
CSS::StyleDef.GetField Method
Syntax
c GetField(C field)
Arguments
- field
Character
Description
Get field by name (allows non-standard css fields).
Discussion
Get field by name (allows non-standard css fields). This function can be used to get settings that are not directly represented by the CSS class. The example shows a CSS style definiton with a couple attributes that are not included in the CSS class, but are persisted when you dump the CSS using ToString().
Example
dim css as css::StyleDef css.FromString("font: Tahoma 9; my-attribute:one; another-attribute:two;") ? css.toString() = font-family: Tahoma; font-size: 9; my-attribute: one; another-attribute: two; ? css.font_family = "Tahoma" ? css.font_size = "9" ? css.GetField("my-attribute") = "one" ? css.GetField("another-attribute") = "two"
See Also